<template>
    <div class="not-found">
      <div class="content">
        <h1>404</h1>
        <p>抱歉，您访问的页面不存在。</p>
        <router-link to="/" class="home-link">返回首页</router-link>
      </div>
    </div>
  </template>
  
  <script setup lang="ts">
  import { RouterLink } from 'vue-router';
  </script>
  
  <style scoped>
  .not-found {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9fa;
  }
  
  .content {
    text-align: center;
    max-width: 400px;
  }
  
  h1 {
    font-size: 6rem;
    color: #343a40;
    margin-bottom: 0.5rem;
  }
  
  p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
  }
  
  .home-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: #fff;
    background-color: #007bff;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .home-link:hover {
    background-color: #0056b3;
  }
  </style>